#ifndef QRESOURCELISTVIEW_H
#define QRESOURCELISTVIEW_H


#include <QListView>

class QResourceFileModel;
class AbstractCore;

class QResourceListView: public QListView
{
    Q_OBJECT
public:
    QResourceListView(AbstractCore *core,QWidget *parent=0);

    QSize           ContentsSize();

    void            addFile(QString str);
    void            removeFile(QString str);
    void            select(QString name);
    QString         getSelect();

    void            clear();
signals:
    void            selectChanged();
protected slots:
    void	mousePressed( const QModelIndex & index );
protected:
    QResourceFileModel      *m_model;
    AbstractCore            *m_core;
};

#endif // QRESOURCELISTVIEW_H
